package org.jeecg.modules.flowable.listener;

import org.flowable.common.engine.api.delegate.event.FlowableEvent;
import org.flowable.common.engine.api.delegate.event.FlowableEventListener;
import org.flowable.common.engine.impl.cfg.TransactionState;
import org.springframework.stereotype.Component;

/**
 * 任务节点后置监听处理类
 */
@Component
public class TaskCompletedListener implements FlowableEventListener {


    @Override
    public void onEvent(FlowableEvent event) {
        // 当前节点任务实体,

    }

    @Override
    public boolean isFailOnException() {
        return false;
    }

    @Override
    public boolean isFireOnTransactionLifecycleEvent() {
        return true;
    }

    @Override
    public String getOnTransaction() {
        return TransactionState.COMMITTED.name();
    }

}